package cn.zhibang.yygh2.service.hosp.repository;

import cn.zhibang.yygh2.model.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    //根据医院编号hoscode和科室编号depcode获得科室信息
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

}
